package com.thinkgem.jeesite.modules.brain.common;

import com.thinkgem.jeesite.modules.brain.entity.BQuarterData;
import com.thinkgem.jeesite.modules.brain.entity.BRankDic;

import java.util.List;
import java.util.Map;
import java.util.Set;


//一個季度 只能配置一次不予更改
public class TenantConfig {


    public String tenantId;//id
    List<BRankDic> rankDicList;//排位
    BQuarterData quarter;//季度
    List<QuesRate> rateList;//所有概率 按照星級排序
        int criticalScore;          //临界总数 (通过分数)
        List <TimeScoreRate>  TimeScoreRateList;     //耗时对应分数 按照耗时排序
       int singeSecondUsage;        //单题耗时 单位 秒
       int singeScore;             //单题总分
       int questionCount;             //单次题目总数
       int minimumScore;      //答对最低分数
      RankHandler handler;

    public int getCriticalScore() {
        return criticalScore;
    }

    public void setCriticalScore(int criticalScore) {
        this.criticalScore = criticalScore;
    }

    public List<TimeScoreRate> getTimeScoreRateList() {
        return TimeScoreRateList;
    }

    public void setTimeScoreRateList(List<TimeScoreRate> timeScoreRateList) {
        TimeScoreRateList = timeScoreRateList;
    }

    public int getSingeSecondUsage() {
        return singeSecondUsage;
    }

    public void setSingeSecondUsage(int singeSecondUsage) {
        this.singeSecondUsage = singeSecondUsage;
    }

    public int getSingeScore() {
        return singeScore;
    }

    public void setSingeScore(int singeScore) {
        this.singeScore = singeScore;
    }

    public int getQuestionCount() {
        return questionCount;
    }

    public void setQuestionCount(int questionCount) {
        this.questionCount = questionCount;
    }

    public int getMinimumScore() {
        return minimumScore;
    }

    public void setMinimumScore(int minimumScore) {
        this.minimumScore = minimumScore;
    }

    public RankHandler getHandler() {
        return handler;
    }

    public void setHandler(RankHandler handler) {
        this.handler = handler;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public List<BRankDic> getRankDicList() {
        return rankDicList;
    }

    public void setRankDicList(List<BRankDic> rankDicList) {
        this.rankDicList = rankDicList;
    }

    public BQuarterData getQuarter() {
        return quarter;
    }

    public void setQuarter(BQuarterData quarter) {
        this.quarter = quarter;
    }

    public List<QuesRate> getRateList() {
        return rateList;
    }

    public void setRateList(List<QuesRate> rateList) {
        this.rateList = rateList;
    }


//耗时对应分数百分比

    class TimeScoreRate{
        int secondUsage; //耗时  秒
        double rate;

        public TimeScoreRate(int secondUsage, double rate) {
            this.secondUsage = secondUsage;
            this.rate = rate;
        }

        public TimeScoreRate() {
        }

        public int getSecondUsage() {
            return secondUsage;
        }

        public void setSecondUsage(int secondUsage) {
            this.secondUsage = secondUsage;
        }

        public double getRate() {
            return rate;
        }

        public void setRate(double rate) {
            this.rate = rate;
        }
    }

//出题概率
    class QuesRate{

        private BRankDic rank;

        private Map<ExercType,Double> rate;
        //  singeChoice;
        //  multiChoice;
        //  judgment;



        public BRankDic getRank() {
            return rank;
        }

        public void setRank(BRankDic rank) {
            this.rank = rank;
        }

        public Map<ExercType, Double> getRate() {
            return rate;
        }

        public void setRate(Map<ExercType, Double> rate) {
            this.rate = rate;
        }



    }
}
